/**
 * fileName:  CostEntity.java
 * author:  Pitaya
 * Company:  Cloudland Studio
 * Createdate:  2014-6-5 下午11:09:08
 *
 * All rights Reserved, Designed By cloudland Copyright(C) 2010-2011
 *   
 * Modification  History:
 *     Date           Author        Version        
 * -------------------------------------------
 * 2014-6-5            Pitaya            1.0        
 *
 * Why & What is modified:
 * 1.0: 文件创建
 */
package org.cloudland.commercial.masterdata.store.entity;

 /**
 * <pre> 
 * TODO 请充分描述该类提供的作用, 或与其他类会有关联的使用。
 * 使用 java.lang.Object#toString(), 或者 {@link java.lang.Character Character} 等标签
 * </pre>
 * @ClassName  CostEntity
 * @author  Pitaya
 * @version  %I%, %G%
 * @see  
 * @since   JDK1.6
 *
 */
public class CostEntity {
	/**
	 * costId　值编号
	 */
	private String costId;
	
	/**
	 * costName 值名称
	 */
	private String costName;
	
	/**
	 * parentCostId 父值编号
	 */
	private String parentCostId = new String();

	/**
	 * <pre>
	 * TODO 请充分描述该构造函数的作用，及其参数的作用。
	 * </pre>
	 *   
	 */
	public CostEntity() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * <pre>
	 * TODO 请充分描述该构造函数的作用，及其参数的作用。
	 * </pre>
	 *
	 * @param costId
	 * @param costName
	 * @param parentCostId   
	 */
	public CostEntity(String costId, String costName, String parentCostId) {
		this.costId = costId;
		this.costName = costName;
		this.parentCostId = parentCostId;
	}

	/**
	 * get costId
	 * @return costId
	 */
	public String getCostId() {
		return costId;
	}

	/**
	 * set costId
	 * @param costId the value of costId
	 */
	public void setCostId(String costId) {
		this.costId = costId;
	}

	/**
	 * get costName
	 * @return costName
	 */
	public String getCostName() {
		return costName;
	}

	/**
	 * set costName
	 * @param costName the value of costName
	 */
	public void setCostName(String costName) {
		this.costName = costName;
	}

	/**
	 * get parentCostId
	 * @return parentCostId
	 */
	public String getParentCostId() {
		return parentCostId;
	}

	/**
	 * set parentCostId
	 * @param parentCostId the value of parentCostId
	 */
	public void setParentCostId(String parentCostId) {
		this.parentCostId = parentCostId;
	}
	
	/**
	 * @return
	 */
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("costId: ").append(getCostId()).append(", costName:").append(getCostName()).append(", parentCostId: ").append(getParentCostId());
		return buffer.toString();
	}
}
